<template>
  <div class="box-centent">
    <div class="nav-box">
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item :to="{ path: 'salon' }">创客沙龙</el-breadcrumb-item>
        <el-breadcrumb-item>双创大赛</el-breadcrumb-item>
      </el-breadcrumb>
      <div class="nav-search">
        <el-input size="mini" placeholder="输入你要找的内容" prefix-icon="el-icon-search" v-model="search"></el-input>
      </div>
    </div>
    <div class="item">
      <div class="list">
        <div class="image-box">
          <el-image style="width: 260px; height: 204px; border-radius:8px" :src="url"></el-image>
          <div class="state">
            活动中
          </div>
          <div class="state">
            报名中
          </div>
        </div>
        <div class="content">
          <div class="title">
            <div>基于车联网的自动红绿灯控制系统</div>
          </div>
          <div class="time">
            报名时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            结束时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            活动地址:&nbsp;&nbsp;&nbsp;&nbsp;教学楼南楼5楼502
          </div>
          <el-button type="primary" @click="goMore">了解更多</el-button>
        </div>
      </div>
      <div class="list">
        <div class="image-box">
          <el-image style="width: 260px; height: 204px; border-radius:8px" :src="url"></el-image>
          <div class="state">
            活动中
          </div>
          <!-- <div class="state">
            报名中
          </div> -->
        </div>
        <div class="content">
          <div class="title">
            <div>基于车联网的自动红绿灯控制系统</div>
          </div>
          <div class="time">
            报名时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            结束时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            活动地址:&nbsp;&nbsp;&nbsp;&nbsp;教学楼南楼5楼502
          </div>
          <el-button type="primary" @click="goMore">了解更多</el-button>
        </div>
      </div>
      <div class="list">
        <div class="image-box">
          <el-image style="width: 260px; height: 204px; border-radius:8px" :src="url"></el-image>
          <div class="state">
            活动中
          </div>
          <!-- <div class="state">
            报名中
          </div> -->
        </div>
        <div class="content">
          <div class="title">
            <div>基于车联网的自动红绿灯控制系统</div>
          </div>
          <div class="time">
            报名时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            结束时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            活动地址:&nbsp;&nbsp;&nbsp;&nbsp;教学楼南楼5楼502
          </div>
          <el-button type="primary" @click="goMore">了解更多</el-button>
        </div>
      </div>
      <div class="list">
        <div class="image-box">
          <el-image style="width: 260px; height: 204px; border-radius:8px" :src="url"></el-image>
          <div class="state">
            活动中
          </div>
          <div class="state">
            报名中
          </div>
        </div>
        <div class="content">
          <div class="title">
            <div>基于车联网的自动红绿灯控制系统</div>
          </div>
          <div class="time">
            报名时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            结束时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            活动地址:&nbsp;&nbsp;&nbsp;&nbsp;教学楼南楼5楼502
          </div>
          <el-button type="primary" @click="goMore">了解更多</el-button>
        </div>
      </div>
      <div class="list">
        <div class="image-box">
          <el-image style="width: 260px; height: 204px; border-radius:8px" :src="url"></el-image>
          <div class="state">
            活动中
          </div>
          <!-- <div class="state">
            报名中
          </div> -->
        </div>
        <div class="content">
          <div class="title">
            <div>基于车联网的自动红绿灯控制系统</div>
          </div>
          <div class="time">
            报名时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            结束时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            活动地址:&nbsp;&nbsp;&nbsp;&nbsp;教学楼南楼5楼502
          </div>
          <el-button type="primary" @click="goMore">了解更多</el-button>
        </div>
      </div>
      <div class="list">
        <div class="image-box">
          <el-image style="width: 260px; height: 204px; border-radius:8px" :src="url"></el-image>
          <!-- <div class="state">
            活动中
          </div> -->
          <div class="state">
            报名中
          </div>
        </div>
        <div class="content">
          <div class="title">
            <div>基于车联网的自动红绿灯控制系统</div>
          </div>
          <div class="time">
            报名时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            结束时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            活动地址:&nbsp;&nbsp;&nbsp;&nbsp;教学楼南楼5楼502
          </div>
          <el-button type="primary" @click="goMore">了解更多</el-button>
        </div>
      </div>
      <div class="list">
        <div class="image-box">
          <el-image style="width: 260px; height: 204px; border-radius:8px" :src="url"></el-image>
          <div class="state">
            活动中
          </div>
          <div class="state">
            报名中
          </div>
        </div>
        <div class="content">
          <div class="title">
            <div>基于车联网的自动红绿灯控制系统</div>
          </div>
          <div class="time">
            报名时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            结束时间:&nbsp;&nbsp;&nbsp;&nbsp;2020-02-01 00:00—2020-02-05 00:00
          </div>
          <div class="time">
            活动地址:&nbsp;&nbsp;&nbsp;&nbsp;教学楼南楼5楼502
          </div>
          <el-button type="primary" @click="goMore">了解更多</el-button>
        </div>
      </div>
    </div>
    <div class="block">
      <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="currentPage1" :page-size="10" layout="prev, pager, next, total" :total="100" background pager-count="10" hide-on-single-page>
      </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      fits: ['fill', 'contain', 'cover', 'none', 'scale-down'],
      search: '',
      url:
        'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
    }
  },
  methods: {

    goMore () {
      this.$router.push('/matchDetails')
    }
  }
}
</script>

<style lang="scss" scoped>
.box-centent {
  .nav-box {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 18px;
    /deep/.el-breadcrumb {
      flex: 1;
    }
    .nav-search {
      display: flex;
      align-items: center;
      /deep/ .el-input {
        width: 85%;
        .el-input__inner {
          border-radius: 12px;
          height: 21px;
          line-height: 21px;
          padding-left: 15px;
          background: #f5f7ff;
        }
      }
      /deep/ .el-input__prefix {
        left: 115px;
        .el-icon-search {
          line-height: 21px;
        }
      }
    }
  }
  .item {

    .list {
      display: flex;
      justify-content: center;
      padding: 36px 0;
      padding-bottom: 28px;
      border-bottom: 1px solid #979797;
      .image-box {
        position: relative;
        .state {
          position: absolute;
          top: 0;
          left: 0;
          border-radius: 8px 0 8px 0;
          padding: 4px 15px;
          font-size: 14px;
          color: rgba(255, 255, 255, 1);
          background: linear-gradient(
            314deg,
            rgba(245, 131, 146, 1) 0%,
            rgba(254, 81, 96, 1) 100%
          );
          border-radius: 8px 0px 8px 0px;
        }
      }
      .content {
        flex: 1;
        margin-left: 20px;
        .title {
          display: flex;
          align-items: center;
          font-weight: 900;
          font-size: 18px;
          color: rgba(19, 35, 64, 1);
          margin-bottom: 11px;
        }
        .time {
          font-size: 16px;
          color: rgba(51, 69, 102, 1);
          margin-bottom: 23px;
          font-weight: 500;
        }

        /deep/.el-button {
          padding: 8px 18px;
        }
        /deep/.el-button--primary {
          background: linear-gradient(
            135deg,
            rgba(91, 192, 251, 1) 0%,
            rgba(46, 141, 246, 1) 100%
          );
        }
      }
    }
  }
/deep/.block {
    padding: 32px 0 48px;
    .el-pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      .el-pagination__total {
        float: right;
      }
    }
    .btn-prev,
    .btn-next {
      border-radius: 14px;
      background: rgba(148, 148, 148, 0.5);
      .el-icon {
        color: #606266;
      }
    }
    .number {
      border-radius: 14px;
      background: none;
    }
    .btn-next {
      border-radius: 14px;
      background: rgba(148, 148, 148, 0.5);
      .btn-next:disabled {
        color: #333;
      }
    }
  }
}
</style>
